<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
    pageContext.setAttribute("basePath", basePath);
%>
<html>
<head>
    <meta charset="utf-8">
    <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta content="telephone=no" name="format-detection">
    <meta content="email=no" name="format-detection">
    <link rel="stylesheet" href="/admin/css/reset.css" type="text/css"/>
    <script type="text/javascript" src="/admin/js/jquery.min-2.2.4.js"></script>
    <title>车主认证</title>
</head>
<body>
<div class="check-area">
    <input type="hidden" id="type" name="type" value="${bean.type}"/>
    <input type="hidden" id="appid" name="appid" value="${bean.appid}"/>
    <input type="hidden" id="agentUuid" name="appid" value="${bean.agentUuid}"/>
    <input type="hidden" id="companyUuid" name="appid" value="${bean.companyUuid}"/>
    <input type="hidden" id="mobile" name="mobile" value="${bean.mobile}"/>
    <p class="tip">${msg}
        <span class="txt-gray">
            ${checkMsg}
        </span>
    </p>
    <div class="check-unit">
        <p class="title ui-border-bottom">驾驶证信息 </p>
        <p><label>真实姓名</label>${model.name}</p>
        <p><label>驾驶证号</label>${model.licenseNum}</p>
    </div>
    <div class="check-unit">
        <p class="title ui-border-bottom">行驶证信息</p>
        <p><label>车牌号码</label>${model.plateNum}</p>
        <p><label>车辆所有人</label>${model.carUser}</p>
        <p><label>车辆品牌</label>${model.brandName}</p>
        <p><label>注册日期</label>${model.drivingRegisteredTimeStr}</p>
    </div>
</div>
<c:if test="${bean.status == 3}">
    <div class="white-box">
            <%-- <p class="tip">提交资料代表同意<a class="txt-orange" href="userAgreement.html">《合成协议》</a></p>--%>
        <a class="ui-btn submit-btn" id="submit" onclick="reset()">重新填写信息</a>
    </div>
</c:if>
<script type="text/javascript">
    function reset() {
        basePath = '${basePath}';
        location.href = basePath + "/h5/driver/add?appid=" + $('input[name="appid"]').val() + "&agentUuid" + $('input[name="agentUuid"]').val() + "&companyUuid" + $('input[name="companyUuid"]').val() + "&mobile=" + $('input[name="mobile"]').val() + "&type=" + $('input[name="type"]').val();
    }
</script>
</body>
</html>
